package com.cq.hd.system.controller;

import com.cq.hd.common.response.Result;
import com.cq.hd.common.response.ResultGenerator;
import com.cq.hd.system.api.HfRequestRecordApi;
import com.cq.hd.system.api.dto.HfRequestRecordSaveDto;
import com.cq.hd.system.service.TbHfRequestRecordService;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TbHfRequestRecordController implements HfRequestRecordApi {

    @Autowired
    private TbHfRequestRecordService hfRequestRecordService;

    @ApiOperation(value = "保存汇付申请单记录")
    @ApiImplicitParam(name = "hfRequestRecordSaveDto", value = "实体", required = true, paramType = "body", dataType = "HfRequestRecordSaveDto")
    @Override
    public Result<Boolean> saveRequestRecord(@RequestBody HfRequestRecordSaveDto hfRequestRecordSaveDto) {
        return ResultGenerator.success(hfRequestRecordService.saveRequestRecord(hfRequestRecordSaveDto));
    }
}
